/**
 * 
 */
package com.googlecode.xcarve.base;

import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;
import java.util.Properties;

import org.springframework.core.io.support.PropertiesLoaderUtils;

/**
 * @author xinyun.d
 * 2014年11月9日
 */
public class PropertiesUtils {
	
	public static void main(String[] args) throws IOException {
//		Resource resource = new ClassPathResource("classpath*:dove.properties");
//		Properties properties = PropertiesLoaderUtils.loadProperties(resource);
//		System.out.println(properties.getProperty("dove.zookeeper.address"));
		
		Properties properties = PropertiesLoaderUtils.loadAllProperties("*.properties");
		System.out.println(properties.getProperty("dove.zookeeper.address"));
		
		 
		
	}
	
}
